//router的入口文件，引入路由
const Router = require('koa-router')
const router = new Router()
const createRoom = require('./createRoom')
const searchRoom = require('./searchRoom')

router.use('/createRoom', createRoom.routes(), createRoom.allowedMethods());
router.use('/searchRoom', searchRoom.routes(), searchRoom.allowedMethods());

//导出给app.js使用
module.exports = router;